import {createStore,applyMiddleware} from 'redux';
//redux中间键，处理异步数据流
// import thunk from 'redux-thunk';
import createSaga from 'redux-saga';
import rootSaga from './saga/index';
import reduxs from "./reduxs/index";

let saga=createSaga();

let store=createStore(reduxs,applyMiddleware(saga));

saga.run(rootSaga);
export default store;